package com.xiaocg.adapter.classpack;

/**
 * 要读tf卡的数据，所以tf是适配者类
 * 目标必须是接口
 */
public class SdReadTfTest {
    public static void main(String[] args) {
        SdCardAdapter adapter = new SdCardAdapter();
        String s = adapter.readSd();
        System.out.println(s);
        adapter.writeSd(s);

        SdCard sdCard = new SdCardImpl();
        String s1 = sdCard.readSd();
        System.out.println(s1);
    }
}
